﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BiffenServiceLibary;
using BiffenController.ServiceReference2;
using BiffenModel;

namespace BiffenController
{
    public class CinemaHallController
    {
        RemoteBookingSystemClient cli;

        public CinemaHallController()
        {
            cli = new RemoteBookingSystemClient();
        }

        public void NewCinemaHall(int showID)
        {
            cli.NewCinemaHall(showID);
        }

        public CinemaHall GetOneCinemaHall(int cinemaID)
        {
            return cli.GetOneCinemaHall(cinemaID);
        }

        public void DeleteCinemaHall(int cinemaID)
        {
            cli.DeleteCinemaHall(cinemaID);
        }

        public void UpdateCinemaHall(int cinemaID, int showID)
        {
            cli.UpdateCinemaHall(cinemaID, showID);
        }

        public List<CinemaHall> AllCinemas()
        {
            return cli.AllCinemas().ToList();
        }
    }
}
